At present, the production of crude oil in many domestic oil fields is gradually declining and the pipeline is in the state of lowvolume operation. In order to ensure the safe operation of the pipeline, the thermal and hydraulic characteristics of the pipeline are considered, and the simulation model of buried hot oil pipeline is established by PipePhase software. The calculation method of the minimum flow of pipe is put forward. Taking a certain crude oil pipeline as an example, the minimum thermal and hydraulic safety output of the pipeline in different months are calculated. Finally, the minimum safe output of the pipeline is determined, which is provided for the safe operation of the pipeline.